// Raf Lempens & Bjorn Schobben
#include "TurnAbilityVisitor.h"


TurnAbilityVisitor::TurnAbilityVisitor(): found(false), turnableInterface(0)
{
}

TurnAbilityVisitor::~TurnAbilityVisitor()
{
}

void TurnAbilityVisitor::Visit(TurnAbility& ability)
{
	found = true;
	turnableInterface = ability.TurnableInterface();
}

bool TurnAbilityVisitor::FoundAbility() const
{
	return found;
}

Turnable* TurnAbilityVisitor::TurnableInterface() const
{
	return turnableInterface;
}

void TurnAbilityVisitor::Clear()
{
	found = false;
	turnableInterface = 0;
}

